<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />
    <title>灵感库</title>
    <link rel="stylesheet" type="text/css" href="css/z-UI.tab.css"/>

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery-table/jquery.table.js"></script>
    <link rel="stylesheet" href="js/jquery-table/css/jquery-table-default.css" />
    <link rel="stylesheet" href="js/jquery-table/css/jquery-table-admin.css" />

    <style>
		html,body{
            width: 100%;height: 100%;
            margin:0;background-color: white;
        }
        .zUI-bar .content .wrap { padding: 10px }
        .button { padding: 2px 10px; }
        .zUI-bar input{ padding: 5px  }
        .oneCategoryText {     display: inline-block; padding: 10px 20px;background-color: #dfd8bc;margin-right: 10px;font-size: 15px;     border-style: solid; border-width: 0px; }
        .oneCategoryDiv { padding: 20px 10px; border-bottom: 1px solid #777; }

        .twoCategoryDiv {      padding: 20px 10px;  }
        .twoCategoryText { padding: 3px 10px;background-color: #e8e8e8;margin-right: 6px;font-size: 10px; border-style: solid; border-width: 0px; }

        .oneCategoryImg{background-image: url(img/add.jpeg);background-size: 64px 64px;background-repeat: no-repeat;width: 64px;height: 64px;margin-right: 20px;display: inline-block;}
        .twoCategoryImg{ background-image: url(img/add.jpeg);background-size: 64px 64px;background-repeat: no-repeat;width: 64px;height: 64px;margin-right: 20px;display: inline-block;   }
    </style>

</head>
<body  >
    <div style="width: 100%;height: 100%;overflow-y: auto;box-sizing: border-box;padding: 30px;display: inline-flex">
        <div style="margin: 5px;">
            <div class="zUI-bar line md" id="tab1">
                <div class="bar-box">
                    <div class="nav " onclick="location.href = '/index.html'">
                        内容展示
                    </div>
                    <div class="nav" onclick="location.href = '/tag.html'">
                        标签管理
                    </div>
                    <div class="nav active" onclick="location.href = '/category.html'">
                        分类管理
                    </div>
                    <div class="nav" onclick="location.href = '/content.html'">
                        内容管理
                    </div>
                    <div class="nav" onclick="location.href = '/system.html'">
                        系统管理
                    </div>
                </div>
                <div class="content" id="catagoryDiv">
                    <div>
                        <input type="text" name="c_name"  placeholder="一级标题"/>
                        <input type="text" name="c_desc"  placeholder="一级描述"/>
                        <button onclick="addCatagory(this, 'one')">添加</button>
                    </div>
                    <div  class="oneCategoryDiv">
                    </div>

                    <div>
                        <input type="text" name="c_name"  placeholder="二级标题"/>
                        <input type="text" name="c_desc"  placeholder="二级描述"/>
                        <button onclick="addCatagory(this, 'two')">添加</button>
                    </div>
                    <div  class="twoCategoryDiv">
                    </div>

                    <div style="margin-top: 20px">
                        <h3>删除分类</h3>
                        <input type="text" id="delCId" name="c_id" placeholder="输入分类id"/>
                        <button onclick="delCategory()">删除</button>
                    </div>

                    <div style="margin-top: 20px">
                        <h3>修改分类</h3>
                        <input type="text" id="updCId" name="c_id" placeholder="输入分类id"/>
                        <input type="text" id="updCName" name="c_name" placeholder="输入分类name"/>
                        <input type="text" id="updCdesc" name="c_desc" placeholder="输入分类desc"/>
                        <button onclick="updCategory()">修改</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<script type="text/javascript" src="js/category.js"></script>
</html>